<%@ include file="/WEB-INF/jsp/includes/include.jsp" %>
<%@ attribute name="posting" required="true" type="edu.cornell.cubooks.domain.Posting" %>
<%@ attribute name="action" required="true" %>

<form:form modelAttribute="posting">
	<fieldset class="row1">
		<div class="form-pair">	
			<div class="form-item">
				<label for="title">* Title:</label>
			</div>
			<div class="form-value">
				<form:input path="title" size="30" maxlength="100"/><br /><form:errors path="title" cssClass="errors" />
 			</div>
		</div>
		<div class="form-pair">	
			<div class="form-item">
				<label for="description">* Description:</label>
			</div>
			<div class="form-value">
 			   <form:textarea path="description" cols="27" rows="10" /><br /><form:errors path="description" cssClass="errors" />
 			</div>
		</div>
		<div class="form-pair">	
			<div class="form-item">
				<label for="price">* Start Price:</label>
			</div>
			<div class="form-value">
 			   <form:input path="price" size="30" maxlength="30" /><br /><form:errors path="price" cssClass="errors" />
 			</div>
		</div>
		<div class="form-pair">	
			<div class="form-item">
				<label for="duration">* Auction Duration:</label>
			</div>
			<div class="form-value">
 			   <form:select path="duration">
 			    <form:option value="0">3 min</form:option>
 			   	<form:option value="1">1 day</form:option>
 			   	<form:option value="3">3 days</form:option>
 			   	<form:option value="7">7 days</form:option>
 			   </form:select>
 			</div>
		</div>	
	</fieldset>
	<fieldset class="form-submit">
		<div class="form-submit-buttons">
			<input type="reset" class="input-reset" name="reset" value="reset" />
			<input type="submit" class="input-submit" name="submit" value="${action} Posting" />
		</div>
	</fieldset>
</form:form>
